<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>下拉</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        ul li{
            padding: 0;
            margin: 0;
            display: inline-block;
        }
        .box{
           width: 1010px;
            height: 60px;
            background-color: aquamarine;
            margin: 0 auto;
            line-height: 60px;

        }
        .nav li{
            margin-left: 50px;
            font-size: 12px;

        }
        .nav{
            float:right;
            margin-right:150px;
        }
        .box span{
            float: left;
            margin-left: 20px;
           font-weight: bold;
            font-size: 16px;
        }
        .floor{
            width: 1010px;
            height: 230px;
            background-color: yellowgreen;
            margin: 0 auto;
        }

        .floor2:hover .floor{
            background-color: red;
        }

    </style>
</head>
<body>
        <div class="box">
            <span>新安猎聘</span>
            <ul class="nav">
                <li class="floor2">房产开发</li>
                <li class="floor3">IT互联网</li>
                <li class="floor4">智能制造</li>
                <li class="floor5">商业零售</li>
                <li class="floor6">金融投资</li>
            </ul>
        </div>
        <div class="floor">

        </div>
</body>
</html>